<template>
  <div class="app">
    <!-- 报告中心 版心-->
    <div class="report">
      <!-- 上面一个 -->
      <div class="report-top">
        <!-- 标题 -->
        <div class="tittle">
          <span></span>
          <h1>报告中心</h1>
        </div>
        <!-- 示例图 -->
        <div class="chart">
          <div class="charts">
            <!--上  颜色 -->
            <div class="top">
              <!-- 左 -->
              <div>
                <!-- <img src="@/assets/picture/weather.png" alt=""> -->
                <span class="icon-cunchuka iconfont"></span>
              </div>
              <!-- 右 -->
              <div>
                <h1>综合安全风险报告</h1>
                <h4>管理员</h4>
                <p>.doc</p>
              </div>
            </div>
            <!-- 下 -->
            <div class="bottom">
              <h4>文字内容描述:综合安全风险</h4>

              <div>
                <p>立即导出</p>
              </div>
            </div>
          </div>
          <div class="charts">
            <!--上  颜色 -->
            <div class="top">
              <!-- 左 -->
              <div>
                <!-- <img src="@/assets/picture/weather.png" alt=""> -->
                <span class="icon-cunchuka iconfont"></span>
              </div>
              <!-- 右 -->
              <div>
                <h1>综合安全风险报告</h1>
                <h4>管理员</h4>
                <p>.doc</p>
              </div>
            </div>
            <!-- 下 -->
            <div class="bottom">
              <h4>文字内容描述:综合安全风险</h4>

              <div>
                <p>立即导出</p>
              </div>
            </div>
          </div>
          <div class="charts">
            <!--上  颜色 -->
            <div class="top">
              <!-- 左 -->
              <div>
                <!-- <img src="@/assets/picture/weather.png" alt=""> -->
                <span class="icon-cunchuka iconfont"></span>
              </div>
              <!-- 右 -->
              <div>
                <h1>综合安全风险报告</h1>
                <h4>管理员</h4>
                <p>.doc</p>
              </div>
            </div>
            <!-- 下 -->
            <div class="bottom">
              <h4>文字内容描述:综合安全风险</h4>

              <div>
                <p>立即导出</p>
              </div>
            </div>
          </div>
          <div class="charts">
            <!--上  颜色 -->
            <div class="top">
              <!-- 左 -->
              <div>
                <!-- <img src="@/assets/picture/weather.png" alt=""> -->
                <span class="icon-cunchuka iconfont"></span>
              </div>
              <!-- 右 -->
              <div>
                <h1>综合安全风险报告</h1>
                <h4>管理员</h4>
                <p>.doc</p>
              </div>
            </div>
            <!-- 下 -->
            <div class="bottom">
              <h4>文字内容描述:综合安全风险</h4>

              <div>
                <p>立即导出</p>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- 下面一个 -->
      <div class="report-bottom">
        <div class="in">
          <el-input
            v-model="search"
            style="width: 70%; border-right: none"
            size="mini"
            placeholder="输入关键字搜索"
          />
          <el-button size="mini" type="danger">搜索</el-button>
        </div>
        <div class="bu">
            <p style="">操作</p>
        </div>
        <el-table
          :data="
            tableData.filter(
              (data) =>
                !search ||
                data.name.toLowerCase().includes(search.toLowerCase())
            )
          "
          style="width: 100%"
        >
          <el-table-column label="导出历史" width="100px" prop="date">
          </el-table-column>
          <el-table-column label="" width="200px" prop="name">
          </el-table-column>
          <el-table-column label="" width="150px"  prop="lei"> </el-table-column>
          <el-table-column label="" width="150px" prop="ge"> </el-table-column>
          <el-table-column label="" width="250px" prop="time">
          </el-table-column>
          <el-table-column label="" width="250px" prop="outtime">
          </el-table-column>
          <el-table-column label="" width="100px"  prop="chao" class="bao">
               <el-button size="mini" type="danger">下载</el-button>
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
import "@/assets/font/icon.css";
export default {
  data() {
    return {
      tableData: [
        {
          date: "#",
          name: "报告名称",
          lei: "报告类型",
          ge: "报告格式",
          time: "报告时间范围",
          outtime: "导出时间",
          chao: "操作",
        },
        {
          date: "1",
          name: "摘要报告_2021-09-01",
          lei: "摘要报告",
          ge: "word",
          time: "2021-09-01至2021-09-09",
          outtime: "2021-09-09 19:20:00",
          chao: "下载",
        },
        {
          date: "2",
          name: "摘要报告_2021-09-01",
          lei: "摘要报告",
          ge: "word",
          time: "2021-09-01至2021-09-09",
          outtime: "2021-09-09 19:20:00",
          chao: "下载",
        },
        {
          date: "1",
          name: "摘要报告_2021-09-01",
          lei: "摘要报告",
          ge: "word",
          time: "2021-09-01至2021-09-09",
          outtime: "2021-09-09 19:20:00",
          chao: "下载",
        },
      ],
      search: "",
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
  },
};
</script>

<style lang="less" scoped>
.el-table__body .el-table__row:nth-child(2) .el-table_1_column_7 .cell{
    width: 100px;
    background-color: red;
}
.bao{
     width: 100px !important;
    background-color: red !important;
}
.sousou {
  display: flex;
}
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul {
  padding: 0;
  margin: 0;
}
.app .report {
  width: 1200px;
  margin: 0 auto;
  margin-top: 15px;
}
.app .report .report-top {
  width: 1140px;
  margin: 0 auto;
}
.report-top .tittle {
  display: flex;
  align-items: center;
  height: 75px;
  margin-bottom: 22px;
  background: #fbfcfd;
}
.report-top .tittle span:first-child {
  display: block;
  width: 8px;
  margin-right: 10px;
  height: 28px;
  background-color: rgb(8, 197, 115);
}
.report-top .tittle h1:last-child {
  margin: 0;
  font-size: 24px;
}
.chart {
  display: flex;
  justify-content: space-between;
}
.chart .charts:nth-child(2) .top,
.chart .charts:nth-child(2) .bottom div {
  background-color: #f86767;
}
.chart .charts:nth-child(3) .top,
.chart .charts:nth-child(3) .bottom div {
  background-color: #0fc278;
}
.chart .charts:nth-child(4) .top,
.chart .charts:nth-child(4) .bottom div {
  background-color: #926ddc;
}
.chart .charts {
  width: 274px;
}
.chart .charts .top {
  display: flex;
  background-color: #31c9ba;
  border-radius: 4px;
}
.chart .charts .top div:first-child {
  margin: auto;
  width: 50px;
  height: 50px;
  margin-left: 26px;
  margin-right: 22px;
  border-radius: 50%;
  background-color: rgba(116, 165, 165, 0.3);
}
.chart .charts .top div:first-child span {
  width: 30px;
  display: block;
  margin: 0 auto;
  color: white;
  font-size: 24px;
  text-align: center;
  margin-top: 12px;
  height: 30px;
}
.chart .charts .top div:last-child h1 {
  font-size: 19px;
  margin: 0;
  margin-top: 28px;
  padding: 0;
  color: white;
}
.chart .charts .top div:last-child h4 {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  color: white;
}
.chart .charts .top div:last-child p {
  font-size: 14px;
  margin: 0;
  margin-bottom: 25px;
  color: white;
}

.chart .charts .bottom {
  width: 100%;
  padding: 28px 0 28px 0;
  background-color: #fafbfc;
}
.chart .charts .bottom h4 {
  font-size: 15px;
  color: #9a9a9a;
  margin-bottom: 0;
  //   text-indent: 24px;
  text-align: center;
  margin-top: 0;
}
.chart .charts .bottom div {
  width: 148px;
  height: 38px;
  margin: 54px auto 0;
  background-color: #31c9ba;
  cursor: pointer;
  color: white;
  border-radius: 19px;
}
.chart .charts .bottom div p {
  margin: 0;
  text-align: center;
  padding-top: 9px;
}
.report-bottom {
  width: 100%;
  position: relative;
//   height: 370px;
  background-color: #fbf7f7;
  box-shadow: 0px 0px 1px 0px #888888;
}
.report-bottom .in {
 
  top: 10px;
  position: absolute;
   z-index: 100;
  right: 0;
}
.report-bottom .bu{
  position: absolute;

   z-index: 100;

    top: 60px;
    right: 34px;
  
}
.report-bottom .bu p{
    width: 56px;
    height: 28px;
    text-align: center;
    background-color: white;



}
.report-bottom .search {
  display: flex;
  padding: 22px 0 16px 0;
  border-bottom: 1px solid #f5f5f6;
  justify-content: space-between;
}
.report-bottom .search li:first-child {
  margin-left: 40px;
  margin-top: 16px;
}

.report-bottom .search li:first-child p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

.report-bottom .search li:last-child {
  margin-right: 60px;
  border: 1px solid #eaeaea;
}
.report-bottom .search li:last-child input {
  height: 34px;
  text-indent: 12px;
  border-right: none;
  width: 228px;
  border: none;
  outline: none;
}
.report-bottom .search li:last-child span {
  height: 34px;
  cursor: pointer;
  padding: 0;
  display: inline-block;
  width: 54px;
  outline: none;
  vertical-align: middle;
  text-align: center;
  line-height: 32px;
  background-color: rgb(247, 226, 226);
}
.report-bottom {
  box-shadow: gray;
  margin-top: 26px;
}
.report-bottom .top {
  display: flex;
  margin-left: 25px;
  margin-right: 22px;
  border-bottom: 1px solid #ebedee;
}
.report-bottom .top li {
  margin: 0;
  margin-top: 30px;
  font-weight: bold;
  margin-bottom: 12px;
}
.report-bottom .top li:first-child {
  margin-left: 10px;
  margin-right: 38px;
}
.report-bottom .top li:nth-child(3) {
  margin-left: 188px;
  margin-right: 65px;
}
.report-bottom .top li:nth-child(5) {
  margin-left: 66px;
  margin-right: 200px;
}
.report-bottom .top li:nth-child(6) {
  margin-right: 178px;
}
.report-bottom .shu {
  display: flex;
  margin-left: 25px;
  margin-right: 22px;
  border-bottom: 1px solid #ebedee;
}
.report-bottom .shu:last-child li {
  margin-bottom: 100px;
}
.report-bottom .shu li {
  margin-top: 25px;
  margin-bottom: 23px;
}
.report-bottom .shu li:last-child {
  color: #5babe9;
}
.report-bottom .shu li:first-child {
  margin-left: 10px;
  margin-right: 38px;
}
.report-bottom .shu li:nth-child(2) {
  margin-right: 95px;
}
.report-bottom .shu li:nth-child(4) {
  margin-left: 66px;
  margin-right: 90px;
}
.report-bottom .shu li:nth-child(6) {
  margin-left: 102px;
  margin-right: 82px;
}
.report-bottom .shu li:last-child button {
  color: white;
  border-radius: 4px;
  outline: none;
  border: none;
  cursor: pointer;
  width: 45px;
  background-color: #5babe9;
}
</style>